ROOT=..
PLATFORM=$(shell $(ROOT)/systype.sh)
include $(ROOT)/Make.defines.$(PLATFORM)

PROGS += signal_test
PROGS += sigUsr # P257-258
# PROGS += prmask
# PROGS += setops

PROGS += test_alarm
# PROGS += sleep1 # P269  测试alarm()+pause() 
# PROGS += sleep2 # P270  上一个的完善版本      
# PROGS += tsleep2 # P271 调用sleep2()

PROGS += test_sigaction

all: $(PROGS) 

$(PROGS): $(LIBAPUE)
# %: %.c $(LIBAPUE)
	$(CC) $(CFLAGS) -g $@.c -o $@ $(LDFLAGS) $(LDLIBS)

clean:
	rm -rf $(PROGS) $(TEMPFILES) *hole 

include $(ROOT)/Make.libapue.inc 